package com.qr.bean.wmyh;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
/**
 * @author: zc
 * email: zc8023zs@163.com
 * create_time: 2020/8/11 13:01:53
 * 分离出查询实体
 */
@ApiModel(value = "jbr_user_amount_list", description = "会员余额变动明细")
@TableName(value = "jbr_user_amount_list")
public class JbrUserAmountListView implements Serializable {
	@ApiModelProperty(value = "编号")
	@TableId(type = IdType.AUTO,value = "id")
	@NotNull(message = "编号不能为空")
	private Integer id;
	@ApiModelProperty(value = "会员ID")
	@TableField(value="user_id")
	private Integer user_id;
	@ApiModelProperty(value = "正数 表示充值                        负数 表示支出")
	@TableField(value="trade_amount")
	private BigDecimal trade_amount;
	@ApiModelProperty(value = "交易时间")
	@TableField(value="trade_time")
	private Timestamp trade_time;
	@ApiModelProperty(value = "1充值                        2消费                        3订单退款")
	@TableField(value="trade_type")
	private Integer trade_type;
	@ApiModelProperty(value = "交易描述")
	@TableField(value="trade_desc")
	private String trade_desc;
	@ApiModelProperty(value = "关联订单ID")
	@TableField(value="order_id")
	@NotNull(message = "关联订单ID不能为空")
	private Integer order_id;
	@ApiModelProperty(value = "充值订单ID")
	@TableField(value="recharge_id")
	private Integer recharge_id;
	@ApiModelProperty(value = "账户余额")
	@TableField(value="last_amount")
	private BigDecimal last_amount;

 
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
 
	public Integer getUser_id() {
		return user_id;
	}
	public void setUser_id(Integer user_id) {
		this.user_id = user_id;
	}
 
	public BigDecimal getTrade_amount() {
		return trade_amount;
	}
	public void setTrade_amount(BigDecimal trade_amount) {
		this.trade_amount = trade_amount;
	}
 
	public Timestamp getTrade_time() {
		return trade_time;
	}
	public void setTrade_time(Timestamp trade_time) {
		this.trade_time = trade_time;
	}
 
	public Integer getTrade_type() {
		return trade_type;
	}
	public void setTrade_type(Integer trade_type) {
		this.trade_type = trade_type;
	}
 
	public String getTrade_desc() {
		return trade_desc;
	}
	public void setTrade_desc(String trade_desc) {
		this.trade_desc = trade_desc;
	}
 
	public Integer getOrder_id() {
		return order_id;
	}
	public void setOrder_id(Integer order_id) {
		this.order_id = order_id;
	}
 
	public Integer getRecharge_id() {
		return recharge_id;
	}
	public void setRecharge_id(Integer recharge_id) {
		this.recharge_id = recharge_id;
	}
 
	public BigDecimal getLast_amount() {
		return last_amount;
	}
	public void setLast_amount(BigDecimal last_amount) {
		this.last_amount = last_amount;
	}

}